/**
 * @Author : wzgl5533
 * @Timestamp : 2017-07-17
 */
//引入组件库
var nf = sm("do_Notification");
var app = sm("do_App");
var page = sm("do_Page");







//当前页面下，订阅android系统返回键的事件：3秒内连续点击两次退出应用
var canBack = false;
var delay3 = mm("do_Timer");

delay3.delay = 3000;
delay3.on("tick",function(){
	delay3.stop();
	canBack = false;
});
page.on("back",function(){
	if (canBack) {
		app.closePage();
	}else {
		nf.toast("再次点击退出应用");
		canBack = true;
		delay3.start();
	}
});


